From: Gianni Tedesco Date: Fri, 10 Sep 2010 17:49:49 +0000 (+0100) Subject: xl: don't leak a lot of memory in forked process in domain_create X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11514 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=d074f7ebc98194fafd9218ca962d23bf50a76286;p=xen.git xl: don't leak a lot of memory in forked process in domain_create A goto statement skips over freeing data structures for no good reason. It's not a real issue since the next step is to exit() but this cleans up output of valgrind so that other leaks and errors can be spotted. Signed-off-by: Gianni Tedesco Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index d92e288ede..3cd310e09e 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1511,7 +1511,7 @@ start: goto error_out; } ret = domid; - goto waitpid_out; + goto out; } rc = libxl_ctx_postfork(&ctx);